﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace DevWeb.Biztalk.DeploymentSettings.Data.CodeFirst.Configurations
{
    public class DefaultSettingParameterConfiguration : EntityTypeConfiguration<DefaultSettingParameter>
    {

        public DefaultSettingParameterConfiguration()
        {
            HasKey(p => p.Id);
            Property(p => p.ParameterName).HasMaxLength(500);

            HasMany(p => p.DefaultSettingParameterValues)
                .WithRequired(D => D.DefaultSettingParameter)
                .HasForeignKey(d => d.DefaultSettingParameterId);




        }
    }
}
